package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;

import com.addplus.townmall.server.api.model.base.BaseRestModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * order_distribution
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-12-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class OrderDistributionDetail extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 订单分成表主键id
     */
    private Integer orderDistributionId;

    /**
     * 订单主键id
     */
    private Integer orderId;

    /**
     * 订单子项主键id
     */
    private Integer orderItemId;

    /**
     * 一级分销员
     */
    private Integer primaryMemberId;

    /**
     * 一级分佣比
     */
    private BigDecimal primaryDistributionRate;

    /**
     * 一级分销佣金
     */
    private BigDecimal primaryDistributionMoney;

    /**
     * 一级分销退款佣金
     */
    private BigDecimal primaryRefundMoney;

    /**
     * 二级分销员
     */
    private Integer secondaryMemberId;

    /**
     * 二级分佣比
     */
    private BigDecimal secondaryDistributionRate;

    /**
     * 二级分销佣金
     */
    private BigDecimal secondaryDistributionMoney;

    /**
     * 二级分销退款佣金
     */
    private BigDecimal secondaryRefundMoney;

    /**
     * 三级分销员
     */
    private Integer tertiaryMemberId;

    /**
     * 三级分佣比
     */
    private BigDecimal tertiaryDistributionRate;

    /**
     * 三级分销佣金
     */
    private BigDecimal tertiaryDistributionMoney;

    /**
     * 三级分销退款佣金
     */
    private BigDecimal tertiaryRefundMoney;

    /**
     * 普通用户分销总佣金
     */
    private BigDecimal memberDistributionMoney;

    /**
     * 普通用户分销退款总佣金
     */
    private BigDecimal memberRefundMoney;

    /**
     * 个人店铺主键id
     */
    private Integer personalStoreId;

    /**
     * 个人店铺分佣比
     */
    private BigDecimal personalStoreDistributionRate;

    /**
     * 个人店铺分销佣金
     */
    private BigDecimal personalStoreDistributionMoney;

    /**
     * 个人店铺分销退款佣金
     */
    private BigDecimal personalStoreRefundMoney;

    /**
     * 企业店铺分销员
     */
    private Integer storeId;

    /**
     * 企业店铺分佣比
     */
    private BigDecimal storeDistributionRate;

    /**
     * 企业店铺分销佣金
     */
    private BigDecimal storeDistributionMoney;

    /**
     * 企业店铺分销退款佣金
     */
    private BigDecimal storeRefundMoney;

    /**
     * 合伙人分销员
     */
    private Integer partnerId;

    /**
     * 合伙人分佣比
     */
    private BigDecimal partnerDistributionRate;

    /**
     * 合伙人分销佣金
     */
    private BigDecimal partnerDistributionMoney;

    /**
     * 利润金额
     */
    private BigDecimal partnerProfitAmount;

    /**
     * 合伙人退款佣金
     */
    private BigDecimal partnerRefundMoney;

    /**
     * 订单子项总佣金
     */
    private BigDecimal totalDistributionMoney;

    /**
     * 订单子项单退款总佣金
     */
    private BigDecimal totalRefundMoney;

    /**
     * 是否删除(0:否 1:是)
     */
    private Integer isDelete;


}
